blog

home / developersection / blogs / sortedlist in c#

SortedList in C#

Uttam Misra 3873 01-Nov-2010
SortedList sl = new SortedList();
//creating sorted list. private voidbtnAdd_Click(object sender, EventArgs e) { if(txtValue.Text != "" &&txtKey.Text != "")       {             sl.Add(txtKey.Text, txtValue.Text);
//adding key and value to sortedlist.             txtKey.Text= "";            txtValue.Text = "";       }       else             MessageBox.Show("Text Box Empty"); }

c# c# 
Updated 18-Sep-2014
Uttam Misra

Information Technology

More than 18 years of working experience in IT sector. We are here to serve you best.


Message

Leave Comment

Comments

Liked By